namespace System;
/// <summary>
/// 
/// </summary>
public static class DayOfWeekExtensions
{
    /// <summary>
    /// Check if given <see cref="DayOfWeek"/> value is weekend.
    /// </summary>
    public static bool IsWeekend(this DayOfWeek dayOfWeek)
    {
        return dayOfWeek == DayOfWeek.Saturday || dayOfWeek == DayOfWeek.Sunday;
    }

    /// <summary>
    /// Check if given <see cref="DayOfWeek"/> value is weekday.
    /// </summary>
    public static bool IsWeekday(this DayOfWeek dayOfWeek)
    {
        return !dayOfWeek.IsWeekend();
    }
}